﻿using ctolua.Models.Enum;

namespace ctolua.Models.UI.control
{
    public class MCImage : Mui
    {
        public override EUi type { get => EUi.图片; set => base.type = EUi.图片; }


        private int? _image_id;
        /// <summary>
        /// 图片ID
        /// </summary>
        public int? image_id
        {
            get => _image_id;
            set
            {
                if (value != null)
                {
                    game_api.set_ui_comp_image(this.role, this.id, value);
                }

                _image_id = value;
            }
        }






        public MCImage() : base()
        {

        }
        /// <summary>
        /// uid 转 对象
        /// </summary>
        /// <param name="id"></param>
        public MCImage(string id) : base(id)
        {

        }
        public MCImage(MCImage u) : base(u)
        {
            this.image_id = u.image_id;

        }


    }
}
